import HttpRequest from '@/api/request';
import ApiConfig from '@/api/api-config';
function getKey(data) {
    let url = ApiConfig.passwordPublicKey;
    return HttpRequest.requestJsonPost(url,data)
}
function login(data) {
    let url = ApiConfig.login;
    return HttpRequest.requestFormPost(url,data)
}
function logout(data) {
    let url = ApiConfig.logout;
    return HttpRequest.requestJsonPost(url,data)
}
function captcha(data) {
    let url = ApiConfig.captcha;
    return HttpRequest.requestBlobPost(url,data)
}
function guestLogin(data) {
    let url = ApiConfig.guestLogin;
    return HttpRequest.requestJsonPost(url,data)
}
const cinemaPage = option => {
    let url = ApiConfig.cinemaPage;
    return HttpRequest.requestJsonPost(url,option)
};
const cinemaPagetmsPage= option => {
    let url = ApiConfig.cinemaPagetmsPage;
    return HttpRequest.requestJsonPost(url,option)
};
let Service = {
	getKey,
	login,
    logout,
    captcha,
    guestLogin,
    cinemaPage,
    cinemaPagetmsPage
};
export default Service;